package com.cy.detectsys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName detect_mission
 */
@TableName(value ="detect_mission")
@Data
public class DetectMission implements Serializable {
    /**
     * id
     */
    @TableId
    private String id;

    /**
     * 任务名
     */
    private String kyMissionName;

    /**
     * 任务描述
     */
    private String kyMissionBrief;

    /**
     * 任务状态ID
     */
    private Integer kyMissionStatusTypeId;

    /**
     * 任务分类ID
     */
    private Integer kyMissionTypeId;

    /**
     * 任务预期
     */
    private String kyMissionExpectations;

    /**
     * 任务附件
     */
    private String kyMissonAttachments;

    /**
     * 
     */
    private Date updateTime;

    /**
     * 
     */
    private Date createTime;

    /**
     * 
     */
    private String updateUser;

    /**
     * 
     */
    private String createUser;

    /**
     * 
     */
    @TableLogic
    private Integer deleted  = 0;

    /**
     * 任务数据源
     */
    private String kyMissionDatabase;

    /**
     * 
     */
    private String kyMissionParticipator;

    /**
     * 
     */
    private String kyMissionTargetValueAttachmentName;

    /**
     * 
     */
    private Integer kyMissionPriority;

    /**
     * 任务的作战单位列表
     */
    private String kyMissionCustomers;

    /**
     * 任务的网情研究员
     */
    private String kyWebIntelligenceFellows;

    /**
     * 任务分类 1:目侦任务 2:漏扫任务
     */
    private Integer kyMissionTypeSec;

    /**
     * 
     */
    private String kyMissionCode;

    /**
     * 
     */
    private Long pid;

    /**
     * 
     */
    private Date startTime;

    /**
     * 
     */
    private Date endTime;

    /**
     * 
     */
    private String kyMissionTargetIds;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DetectMission other = (DetectMission) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getKyMissionName() == null ? other.getKyMissionName() == null : this.getKyMissionName().equals(other.getKyMissionName()))
            && (this.getKyMissionBrief() == null ? other.getKyMissionBrief() == null : this.getKyMissionBrief().equals(other.getKyMissionBrief()))
            && (this.getKyMissionStatusTypeId() == null ? other.getKyMissionStatusTypeId() == null : this.getKyMissionStatusTypeId().equals(other.getKyMissionStatusTypeId()))
            && (this.getKyMissionTypeId() == null ? other.getKyMissionTypeId() == null : this.getKyMissionTypeId().equals(other.getKyMissionTypeId()))
            && (this.getKyMissionExpectations() == null ? other.getKyMissionExpectations() == null : this.getKyMissionExpectations().equals(other.getKyMissionExpectations()))
            && (this.getKyMissonAttachments() == null ? other.getKyMissonAttachments() == null : this.getKyMissonAttachments().equals(other.getKyMissonAttachments()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateUser() == null ? other.getUpdateUser() == null : this.getUpdateUser().equals(other.getUpdateUser()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))
            && (this.getKyMissionDatabase() == null ? other.getKyMissionDatabase() == null : this.getKyMissionDatabase().equals(other.getKyMissionDatabase()))
            && (this.getKyMissionParticipator() == null ? other.getKyMissionParticipator() == null : this.getKyMissionParticipator().equals(other.getKyMissionParticipator()))
            && (this.getKyMissionTargetValueAttachmentName() == null ? other.getKyMissionTargetValueAttachmentName() == null : this.getKyMissionTargetValueAttachmentName().equals(other.getKyMissionTargetValueAttachmentName()))
            && (this.getKyMissionPriority() == null ? other.getKyMissionPriority() == null : this.getKyMissionPriority().equals(other.getKyMissionPriority()))
            && (this.getKyMissionCustomers() == null ? other.getKyMissionCustomers() == null : this.getKyMissionCustomers().equals(other.getKyMissionCustomers()))
            && (this.getKyWebIntelligenceFellows() == null ? other.getKyWebIntelligenceFellows() == null : this.getKyWebIntelligenceFellows().equals(other.getKyWebIntelligenceFellows()))
            && (this.getKyMissionTypeSec() == null ? other.getKyMissionTypeSec() == null : this.getKyMissionTypeSec().equals(other.getKyMissionTypeSec()))
            && (this.getKyMissionCode() == null ? other.getKyMissionCode() == null : this.getKyMissionCode().equals(other.getKyMissionCode()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getKyMissionTargetIds() == null ? other.getKyMissionTargetIds() == null : this.getKyMissionTargetIds().equals(other.getKyMissionTargetIds()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getKyMissionName() == null) ? 0 : getKyMissionName().hashCode());
        result = prime * result + ((getKyMissionBrief() == null) ? 0 : getKyMissionBrief().hashCode());
        result = prime * result + ((getKyMissionStatusTypeId() == null) ? 0 : getKyMissionStatusTypeId().hashCode());
        result = prime * result + ((getKyMissionTypeId() == null) ? 0 : getKyMissionTypeId().hashCode());
        result = prime * result + ((getKyMissionExpectations() == null) ? 0 : getKyMissionExpectations().hashCode());
        result = prime * result + ((getKyMissonAttachments() == null) ? 0 : getKyMissonAttachments().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateUser() == null) ? 0 : getUpdateUser().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getDeleted() == null) ? 0 : getDeleted().hashCode());
        result = prime * result + ((getKyMissionDatabase() == null) ? 0 : getKyMissionDatabase().hashCode());
        result = prime * result + ((getKyMissionParticipator() == null) ? 0 : getKyMissionParticipator().hashCode());
        result = prime * result + ((getKyMissionTargetValueAttachmentName() == null) ? 0 : getKyMissionTargetValueAttachmentName().hashCode());
        result = prime * result + ((getKyMissionPriority() == null) ? 0 : getKyMissionPriority().hashCode());
        result = prime * result + ((getKyMissionCustomers() == null) ? 0 : getKyMissionCustomers().hashCode());
        result = prime * result + ((getKyWebIntelligenceFellows() == null) ? 0 : getKyWebIntelligenceFellows().hashCode());
        result = prime * result + ((getKyMissionTypeSec() == null) ? 0 : getKyMissionTypeSec().hashCode());
        result = prime * result + ((getKyMissionCode() == null) ? 0 : getKyMissionCode().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getKyMissionTargetIds() == null) ? 0 : getKyMissionTargetIds().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", kyMissionName=").append(kyMissionName);
        sb.append(", kyMissionBrief=").append(kyMissionBrief);
        sb.append(", kyMissionStatusTypeId=").append(kyMissionStatusTypeId);
        sb.append(", kyMissionTypeId=").append(kyMissionTypeId);
        sb.append(", kyMissionExpectations=").append(kyMissionExpectations);
        sb.append(", kyMissonAttachments=").append(kyMissonAttachments);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", createUser=").append(createUser);
        sb.append(", deleted=").append(deleted);
        sb.append(", kyMissionDatabase=").append(kyMissionDatabase);
        sb.append(", kyMissionParticipator=").append(kyMissionParticipator);
        sb.append(", kyMissionTargetValueAttachmentName=").append(kyMissionTargetValueAttachmentName);
        sb.append(", kyMissionPriority=").append(kyMissionPriority);
        sb.append(", kyMissionCustomers=").append(kyMissionCustomers);
        sb.append(", kyWebIntelligenceFellows=").append(kyWebIntelligenceFellows);
        sb.append(", kyMissionTypeSec=").append(kyMissionTypeSec);
        sb.append(", kyMissionCode=").append(kyMissionCode);
        sb.append(", pid=").append(pid);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", kyMissionTargetIds=").append(kyMissionTargetIds);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}